<?php
/**
 * Copyright (c) 2006, PORTALIER Julien
 * 
 * All rights reserved.
 * 
 * @package      Webcomics.fr
 * @copyright    Copyright (c) 2006, Julien PORTALIER
 * @link         http://julien.portalier.com
 */

// debug & errors
define('DEBUG', 2);
error_reporting(DEBUG ? E_ALL : false);

define('CR', "\r");
define('LF', "\n");
define('CRLF', CR.LF);

class Config
{
	const website_name      = '';
	const website_copyright = '';
	
	// routes
	public static $routes = array(
		':^/$:'      => 'page/index',
		':^member/:' => 'members/show/'
	);
	
	// autoload
	public static $autoloads = array(
		'libs'       => array('error', 'request', 'titles'/*, 'timer'*/),
		'components' => array('Session', 'Locale', 'Auth', 'Acl'),
		'helpers'    => array('xhtml', 'form', 'javascript'),
		'database'   => true
	);
	
	// session
	const session_auto    = true;
	const session_cookie  = 'FEATHER_PHP_2';
	const session_string  = 'fdcce5a99626576d8a69a93b2d57a924';
	
	// locale
	const charset         = 'UTF-8';
	const locale_default  = 'fr';
	const locale_timezone = 'Europe/Paris';
	
	// groups
	const groups = 'administrator,member,anonymous';
	const admins = 'administrator';
	const default_groups = 'member';
	
	// should administrators override all access rights?
	const power_privileges = false;
	
	// cache
	const cache_lifetime  = '+1 second';
	
	// swift mailer
	const swift_smtp     = '';
	const swift_sendmail = false;
}

// locale
mb_language('uni');
mb_internal_encoding(Config::charset);

// gzip output
ob_start("ob_gzhandler");
?>